/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CompraScanner.java
 *
 * Created on 21/05/2011, 11:19:50 AM
 */

package GUI;

import Interfaz.Interfaz;
import javax.swing.ImageIcon;

/**
 *
 * @author Vane
 */
public class CompraScanner extends javax.swing.JFrame {

	private Interfaz laInterfaz;

    /** Creates new form CompraScanner */
    public CompraScanner (Interfaz LaInterfaz)  {
		 this.laInterfaz=laInterfaz;
        initComponents();
		this.setLocationRelativeTo(null); // Cmabiar icono de java en ventana
        this.setIconImage(new ImageIcon("src/imagenes/marketplus2.png").getImage());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTree1 = new javax.swing.JTree();
        jTCodigoProducto = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jTCodigoScanner = new javax.swing.JTextField();
        jTCodigoProductoEliminar = new javax.swing.JTextField();
        jToggleButton1 = new javax.swing.JToggleButton();
        jTTotal = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTableProductosScanner = new javax.swing.JTable();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(jTable1);

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane2.setViewportView(jTable2);

        jScrollPane4.setViewportView(jTree1);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(480, 320));
        setResizable(false);
        getContentPane().setLayout(null);

        jTCodigoProducto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTCodigoProductoActionPerformed(evt);
            }
        });
        getContentPane().add(jTCodigoProducto);
        jTCodigoProducto.setBounds(190, 120, 80, 20);

        jLabel1.setText("Codigo Producto:");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(10, 120, 140, 20);

        jLabel2.setText("Codigo Producto a Eliminar:");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(10, 150, 170, 14);

        jLabel3.setText("Total BsF + Iva:");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(10, 180, 120, 14);

        jTCodigoScanner.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTCodigoScannerActionPerformed(evt);
            }
        });
        getContentPane().add(jTCodigoScanner);
        jTCodigoScanner.setBounds(190, 220, 80, 50);
        getContentPane().add(jTCodigoProductoEliminar);
        jTCodigoProductoEliminar.setBounds(190, 150, 80, 20);

        jToggleButton1.setText("Generar Codigo");
        jToggleButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jToggleButton1ActionPerformed(evt);
            }
        });
        getContentPane().add(jToggleButton1);
        jToggleButton1.setBounds(10, 220, 130, 50);
        getContentPane().add(jTTotal);
        jTTotal.setBounds(190, 180, 80, 20);

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabel4.setText("SCANNER");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(160, 10, 100, 20);

        jTableProductosScanner.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Codigo", "Producto", "Precio"
            }
        ));
        jScrollPane3.setViewportView(jTableProductosScanner);

        getContentPane().add(jScrollPane3);
        jScrollPane3.setBounds(280, 50, 180, 220);

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 10));
        jLabel5.setText("Lista de Productos");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(330, 30, 110, 15);

        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/pantallatactil.jpg"))); // NOI18N
        jLabel6.setText("jLabel6");
        getContentPane().add(jLabel6);
        jLabel6.setBounds(10, 10, 130, 110);

        pack();
    }// </editor-fold>//GEN-END:initComponents

	private void jTCodigoProductoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTCodigoProductoActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_jTCodigoProductoActionPerformed

	private void jToggleButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jToggleButton1ActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_jToggleButton1ActionPerformed

	private void jTCodigoScannerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTCodigoScannerActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_jTCodigoScannerActionPerformed

    /**
    * @param args the command line arguments
    */
   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTextField jTCodigoProducto;
    private javax.swing.JTextField jTCodigoProductoEliminar;
    private javax.swing.JTextField jTCodigoScanner;
    private javax.swing.JTextField jTTotal;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTableProductosScanner;
    private javax.swing.JToggleButton jToggleButton1;
    private javax.swing.JTree jTree1;
    // End of variables declaration//GEN-END:variables

}
